package cn.superchart.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Data
@Component
@ConfigurationProperties(prefix = "sc.security")
public class SecurityProperties {
    @Data
    public static  class Jwt{
        private String secretKey;
        private Long expire = 3600L;
        private String cacheType;
    }

    @Data
    public static class Config{
        /** 前端地址 */
        private String viewUrl;

        /** 后端地址 */
        private String apiUrl;
    }


    private String[] whiteList;

    private Jwt jwt;

    private Config config;
}
